import { ref,watch } from "vue"
export default function() {
	let buddyList = ref([])
	buddyList.value = uni.getStorageSync('buddyList')
	
	watch(buddyList, (newVal) =>{
		uni.setStorageSync('buddyList',newVal)
		buddyList.value = newVal
  })

	return buddyList
}